import { createRouter, createWebHistory } from 'vue-router'
import Vue1Home from '../views/Vue1Home/index.vue'
import Vue1Page1 from '../views/Vue1Page1/index.vue'
import Vue1Page2 from '../views/Vue1Page2/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/child/vue1',
      name: 'vue1',
      component: Vue1Home,
      redirect: '/child/vue1/vue1Page1',
      children: [
        {
          path: 'vue1Page1',
          name: 'vue1Page1',
          component: Vue1Page1
        },
        {
          path: 'vue1Page2',
          name: 'vue1Page2',
          component: Vue1Page2
        }
      ]
    }
  ],
})

export default router
